//
//  YDVerticalDetailTopView.h
//  PeiZiWangBei
//
//  Created by LK-IOS on 2018/1/7.
//  Copyright © 2018年 LK-IOS. All rights reserved.
//

#import <UIKit/UIKit.h>

@class YDVerticalStockDetailView , YDVerticalKTimeLineView;



@protocol SYVerticalDetailTopViewDelegate <NSObject>

- (void)didSlectedBtn:(NSString *)title;

@end

@interface YDVerticalDetailTopView : UIView



/**
 构造器

 @param stockDict 单只股票详情字典
 @param stockName 名称
 @param stockCode 代码
 @param isActivity 是不是活动
 @return 对象
 */
+ (instancetype)verticalDetailTopViewWithStockDict:(NSDictionary *)stockDict StockName:(NSString *)stockName StockCode:(NSString *)stockCode IsActivity:(BOOL)isActivity IsNormal:(BOOL)isNormal OptionViewStyle:(SYVerticalStockButtonOptionViewStyle)optionStyle;

/**
 单只股票最新详情
 */
@property (nonatomic , weak) YDVerticalStockDetailView *stockDetailView;


/**
 分时图K图
 */
@property (nonatomic , weak) YDVerticalKTimeLineView *KTimeLineView;


/**
 股票详情数据字典
 */
@property (nonatomic , strong) NSDictionary *stockDict;

/**
 名称
 */
@property (nonatomic , copy) NSString *stockName;

/**
 代码
 */
@property (nonatomic , copy) NSString *stockCode;

/**
 是不是活动
 */
@property (nonatomic , assign) BOOL isActivity;

/**
 是否正常启动
 */
@property (nonatomic , assign) BOOL isNormal;

@property (nonatomic , assign) SYVerticalStockButtonOptionViewStyle optionStyle;

/**
 是不是福定时更新数据
 */
@property (nonatomic , assign) BOOL isTimerData;

@property (nonatomic , weak)id<SYVerticalDetailTopViewDelegate>delegate;


/**
 变更股票后，重新加载新的行情数据
 */
-(void)loadDataDidChangeStock;

-(void)openTimer;
-(void)stopTimer;

@end
